﻿using System;
using UnityEngine;

namespace Valve.VR.InteractionSystem
{
	// Token: 0x02000613 RID: 1555
	public class Interactable : MonoBehaviour
	{
		// Token: 0x14000013 RID: 19
		// (add) Token: 0x0600276E RID: 10094 RVA: 0x000E60F0 File Offset: 0x000E42F0
		// (remove) Token: 0x0600276F RID: 10095 RVA: 0x000E6128 File Offset: 0x000E4328
		[HideInInspector]
		public event Interactable.OnAttachedToHandDelegate onAttachedToHand;

		// Token: 0x14000014 RID: 20
		// (add) Token: 0x06002770 RID: 10096 RVA: 0x000E6160 File Offset: 0x000E4360
		// (remove) Token: 0x06002771 RID: 10097 RVA: 0x000E6198 File Offset: 0x000E4398
		[HideInInspector]
		public event Interactable.OnDetachedFromHandDelegate onDetachedFromHand;

		// Token: 0x06002772 RID: 10098 RVA: 0x000E61D0 File Offset: 0x000E43D0
		private void OnAttachedToHand(Hand hand)
		{
			if (this.onAttachedToHand != null)
			{
				this.onAttachedToHand(hand);
			}
		}

		// Token: 0x06002773 RID: 10099 RVA: 0x000E61EC File Offset: 0x000E43EC
		private void OnDetachedFromHand(Hand hand)
		{
			if (this.onDetachedFromHand != null)
			{
				this.onDetachedFromHand(hand);
			}
		}

		// Token: 0x02000614 RID: 1556
		// (Invoke) Token: 0x06002775 RID: 10101
		public delegate void OnAttachedToHandDelegate(Hand hand);

		// Token: 0x02000615 RID: 1557
		// (Invoke) Token: 0x06002779 RID: 10105
		public delegate void OnDetachedFromHandDelegate(Hand hand);
	}
}
